package org.lanqiao.oa.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.lanqiao.oa.mapper.Role;
import org.springframework.stereotype.Repository;

@Repository
public interface RoleDao extends BaseMapper<Role> {
    /**
     * 添加角色
     * @param role
     * @return
     */
    Integer addRole(Role role);

    /**
     * 根据id删除角色
     * @param ids
     * @return
     */
    Integer deleteRole(@Param("ids") String[] ids);
}
